<html><head><title>FMXISButton.onPress Event</title><script language="JavaScript" src="../../_sharedassets/pages.js"></script></head><body><table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1" /></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%" /></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1" /></td></tr></table><h1>FMXISButton.onPress Event</h1><h4><a name="usage"></a>Usage</h4><p>Usage 1:</p><pre>on(onPress){
  // your code here
}</pre><p>Usage 2:</p><pre><em>listener </em>= new Object();
<em>listener</em>.onPress = function(<em>eventObject</em>){
  // your code here
}
<em>fMXISButton</em>.addEventListener("onPress", <em>listener</em>)</pre><h4><a name="description"></a>Description</h4><p>Event; <p>This class implements a simple momentary push button.  Users can change the
appearance by changing the <i>defaultButUp</i> and <i>defaultButDn</i> movie clips
in the Library.</p>
</p><p>
<p>The class has six events, by default called:</p>
<li><code>onPress</code> - Generated when button first pressed, and repeated at specified frequency</li>
<li><code>onRelease</code> - Generated when button released</li>
<li><code>onReleaseOutside</code> - Generated when button released outside confines of the hit area</li>
<li><code>onRollOver</code> - Generated when cursor rolls over button hit area</li>
<li><code>onRollOut</code> - Generated when cursor rolls out of button hit area</li>
<li><code>onDragOut</code> - Generated when cursor rolls out of button hit area while left mouse button down</li>
</p><p>
<p>The event names can be changed (if desired) in the component property inspector or on initialization through
the <code>initObject</code> of <code>attachMovie()</code>.</p>
<p>This class inherits from FMXISBase to get listener capabilities.</p></p><table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="6" width="1" /></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%" /></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1" /></td></tr></table><br /><br /><hr /><span style='font-size: x-small; font-family: Verdana, Arial'>Documentation generated by <a href='http://wwww.blinex.com/products/bldoc' target='_blank' alt='BLDoc Link'>BLDoc Community Edition</a> from <a href='http://www.blinex.com' target='_blank' alt='B-Line Express Website'>B-Line Express</a>.</body></html>